<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <title>我的</title>
    <link rel="stylesheet" href="plugin/seedsui.min.css">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/me.css">
    <script src="js/rem.js"></script>

</head>
<body>
<!-- 头部 -->
<header class="me_header">
    个人中心
</header>
<!-- 个人头像 pic-->
<div class="pic">
    <div class="pic-head">
        <a href="#">
            <img id="admin_img" src="images/pic_2.png" alt="">
        </a>
    </div>
</div>
<!-- 设置个人中心 list-->
<div class="person-list">
    <ul class="list-1">
        <li><span class="icon icon-fav-fill"></span><a href="./html/me/myinfo.html"> 我的资料<i class="icon icon-arrowright"></i></a></li>
        <li><span class="icon icon-fav-fill"></span><a href="./html/invoice/myInvoice.html"> 发票与报销<i class="icon icon-arrowright"></i></a></li>
        <li><span class="icon icon-fav-fill"></span><a href="./html/me/myorder.html"> 我的订单<i class="icon icon-arrowright"></i></a></li>
        <li><span class="icon icon-fav-fill"></span><a href="./html/me/myapply.html"> 我的报名<i class="icon icon-arrowright"></i></a></li>
    </ul>
    <ul class="list-2">
        <li><span class="icon icon-fav-fill"></span><a href="./html/me/myfavorite.html"> 我的收藏<i class="icon icon-arrowright"></i></a></li>
        <li><span class="icon icon-fav-fill"></span><a href="./html/me/myfootprint.html"> 我的足迹<i class="icon icon-arrowright"></i></a></li>
        <li><span class="icon icon-fav-fill"></span><a href="./html/me/buyrecord.html"> 购买记录<i class="icon icon-arrowright"></i></a></li>
        <li><span class="icon icon-fav-fill"></span><a href="javascritp:;"> 关于我们<i class="icon icon-arrowright"></i></a></li>
        <li><span class="icon icon-fav-fill"></span><a href="javascritp:;"> 联系我们<i class="icon icon-arrowright"></i></a></li>
    </ul>
</div>


<footer id="footer">
        <ul class="clearfix">
            <li>
                <a  href="index.html">
                    <i class="home"></i>
                    <label>推荐</label>
                </a>
            </li>
            <li>
                <a href="leaning.html">
                    <i class="date"></i>
                    <label>学习资料</label>
                </a>
            </li>
            <li>
                <a class="base_active" href="me.html">
                    <i class="me"></i>
                    <label>我的</label>
                </a>
            </li>
        </ul>
    </footer>


<script src="plugin/jquery.js"></script>
<script>
    $(function () {
        $(window).on('load',function () {
            let  username = localStorage.getItem('username'),
                 password = localStorage.getItem('password');
            console.log(username );
            console.log(password);
            
            $.ajax({
                type: "POST",
                url: "http://192.168.3.188/service/px/login_login.json",
                data: { username : username , password : password},
                dataType: "json",
                success: function (data) {
                    console.log(data);
                    var  url = 'http://www.iepsy.com/'+data.data.img;
                    
                   $('#admin_img').attr('src',url);
                }
            });
        
        })

    })

</script>
</body>
</html>